package cn.shopping.service.impl.article;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.shopping.dao.article.ArticleMapper;
import cn.shopping.pojo.Sh_article;
import cn.shopping.service.article.ArticleService;
@Service
public class ArticleServiceImpl implements ArticleService {
	
	@Autowired
	private ArticleMapper articleMapper;

	@Override
	public List<Sh_article> getArticlelist() {
		// TODO Auto-generated method stub
		return articleMapper.getArticlelist();
	}

	@Override
	public int addArticle(Sh_article article) {
		// TODO Auto-generated method stub
		return articleMapper.addArticle(article);
	}

	@Override
	public int delArticle(Sh_article article) {
		// TODO Auto-generated method stub
		return articleMapper.delArticle(article);
	}

	@Override
	public int modifyArticle(Sh_article article) {
		// TODO Auto-generated method stub
		return articleMapper.modifyArticle(article);
	}

	@Override
	public Sh_article getArticle(int id) {
		// TODO Auto-generated method stub
		return articleMapper.getArticle(id);  
	}

}
